package org.jeecg.common.constant;

public interface CommonConstant {

	/**
	 * 正常状态
	 */
	public static final Integer STATUS_NORMAL = 0;

	/**
	 * 禁用状态
	 */
	public static final Integer STATUS_DISABLE = -1;

	/**
	 * 删除标志
	 */
	public static final Integer DEL_FLAG_1 = 1;

	/**
	 * 未删除
	 */
	public static final Integer DEL_FLAG_0 = 0;

	/**
	 * 系统日志类型： 登录
	 */
	public static final int LOG_TYPE_1 = 1;

	/**
	 * 系统日志类型： 操作
	 */
	public static final int LOG_TYPE_2 = 2;

	/**
	 * 操作日志类型： 查询
	 */
	public static final int OPERATE_TYPE_1 = 1;

	/**
	 * 操作日志类型： 添加
	 */
	public static final int OPERATE_TYPE_2 = 2;

	/**
	 * 操作日志类型： 更新
	 */
	public static final int OPERATE_TYPE_3 = 3;

	/**
	 * 操作日志类型： 删除
	 */
	public static final int OPERATE_TYPE_4 = 4;

	/**
	 * 操作日志类型： 倒入
	 */
	public static final int OPERATE_TYPE_5 = 5;

	/**
	 * 操作日志类型： 导出
	 */
	public static final int OPERATE_TYPE_6 = 6;


	/** {@code 500 Server Error} (HTTP/1.0 - RFC 1945) */
    public static final Integer SC_INTERNAL_SERVER_ERROR_500 = 500;
    /** {@code 200 OK} (HTTP/1.0 - RFC 1945) */
    public static final Integer SC_OK_200 = 200;

    /**访问权限认证未通过 510*/
    public static final Integer SC_JEECG_NO_AUTHZ=510;

    /** 登录用户Shiro权限缓存KEY前缀 */
    public static String PREFIX_USER_SHIRO_CACHE  = "shiro:cache:org.jeecg.modules.shiro.authc.ShiroRealm.authorizationCache:";
    /** 登录用户Token令牌缓存KEY前缀 */
    public static final String PREFIX_USER_TOKEN  = "prefix_user_token_";
    /** Token缓存时间：3600秒即一小时 */
    public static final int  TOKEN_EXPIRE_TIME  = 3600;


    /**
     *  0：一级菜单
     */
    public static final Integer MENU_TYPE_0  = 0;
   /**
    *  1：子菜单
    */
    public static final Integer MENU_TYPE_1  = 1;
    /**
     *  2：按钮权限
     */
    public static final Integer MENU_TYPE_2  = 2;

    /**通告对象类型（USER:指定用户，ALL:全体用户）*/
    public static final String MSG_TYPE_UESR  = "USER";
    public static final String MSG_TYPE_ALL  = "ALL";

    /**发布状态（0未发布，1已发布，2已撤销）*/
    public static final String NO_SEND  = "0";
    public static final String HAS_SEND  = "1";
    public static final String HAS_CANCLE  = "2";

    /**阅读状态（0未读，1已读）*/
    public static final String HAS_READ_FLAG  = "1";
    public static final String NO_READ_FLAG  = "0";

    /**优先级（L低，M中，H高）*/
    public static final String PRIORITY_L  = "L";
    public static final String PRIORITY_M  = "M";
    public static final String PRIORITY_H  = "H";

    /**
     * 短信模板方式  0 .登录模板、1.注册模板、2.忘记密码模板
     */
    public static final String SMS_TPL_TYPE_0  = "0";
    public static final String SMS_TPL_TYPE_1  = "1";
    public static final String SMS_TPL_TYPE_2  = "2";

    /**
     * 状态(0无效1有效)
     */
    public static final String STATUS_0 = "0";
    public static final String STATUS_1 = "1";

    /**
     * 同步工作流引擎1同步0不同步
     */
    public static final Integer ACT_SYNC_1 = 1;
    public static final Integer ACT_SYNC_0 = 0;

    /**
     * 消息类型1:通知公告2:系统消息
     */
    public static final String MSG_CATEGORY_1 = "1";
    public static final String MSG_CATEGORY_2 = "2";

    /**
     * 是否配置菜单的数据权限 1是0否
     */
    public static final Integer RULE_FLAG_0 = 0;
    public static final Integer RULE_FLAG_1 = 1;

    /**
     * 是否用户已被冻结 1正常(解冻) 2冻结
     */
    public static final Integer USER_UNFREEZE = 1;
    public static final Integer USER_FREEZE = 2;

    /**字典翻译文本后缀*/
    public static final String DICT_TEXT_SUFFIX = "_dictText";

    /**
     * 表单设计器主表类型
     */
    public static final Integer DESIGN_FORM_TYPE_MAIN = 1;

    /**
     * 表单设计器子表表类型
     */
    public static final Integer DESIGN_FORM_TYPE_SUB = 2;

    /**
     * 表单设计器URL授权通过
     */
    public static final Integer DESIGN_FORM_URL_STATUS_PASSED = 1;

    /**
     * 表单设计器URL授权未通过
     */
    public static final Integer DESIGN_FORM_URL_STATUS_NOT_PASSED = 2;

    /**
     * 表单设计器新增 Flag
     */
    public static final String DESIGN_FORM_URL_TYPE_ADD = "add";
    /**
     * 表单设计器修改 Flag
     */
    public static final String DESIGN_FORM_URL_TYPE_EDIT = "edit";
    /**
     * 表单设计器详情 Flag
     */
    public static final String DESIGN_FORM_URL_TYPE_DETAIL = "detail";
    /**
     * 表单设计器复用数据 Flag
     */
    public static final String DESIGN_FORM_URL_TYPE_REUSE = "reuse";
    /**
     * 表单设计器编辑 Flag （已弃用）
     */
    public static final String DESIGN_FORM_URL_TYPE_VIEW = "view";

    /**
     * online参数值设置（是：Y, 否：N）
     */
    public static final String ONLINE_PARAM_VAL_IS_TURE = "Y";
    public static final String ONLINE_PARAM_VAL_IS_FALSE = "N";

    /**
     * 文件上传类型（本地：local，Minio：minio，阿里云：alioss）
     */
    public static final String UPLOAD_TYPE_LOCAL = "local";
    public static final String UPLOAD_TYPE_MINIO = "minio";
    public static final String UPLOAD_TYPE_OSS = "alioss";

    /**
     * 文档上传自定义桶名称
     */
    public static final String UPLOAD_CUSTOM_BUCKET = "eoafile";
    /**
     * 文档上传自定义路径
     */
    public static final String UPLOAD_CUSTOM_PATH = "eoafile";
    /**
     * 文件外链接有效天数
     */
    public static final Integer UPLOAD_EFFECTIVE_DAYS = 1;

    /**
     * 员工身份 （1:普通员工  2:上级）
     */
    public static final Integer USER_IDENTITY_1 = 1;
    public static final Integer USER_IDENTITY_2 = 2;

    /** sys_user 表 username 唯一键索引 */
    public static final String SQL_INDEX_UNIQ_SYS_USER_USERNAME = "uniq_sys_user_username";
    /** sys_user 表 work_no 唯一键索引 */
    public static final String SQL_INDEX_UNIQ_SYS_USER_WORK_NO = "uniq_sys_user_work_no";
    /** sys_user 表 phone 唯一键索引 */
    public static final String SQL_INDEX_UNIQ_SYS_USER_PHONE = "uniq_sys_user_phone";
    /** sys_user 表 email 唯一键索引 */
    public static final String SQL_INDEX_UNIQ_SYS_USER_EMAIL = "uniq_sys_user_email";
    /** sys_quartz_job 表 job_class_name 唯一键索引 */
    public static final String SQL_INDEX_UNIQ_JOB_CLASS_NAME = "uniq_job_class_name";
    /** sys_position 表 code 唯一键索引 */
    public static final String SQL_INDEX_UNIQ_CODE = "uniq_code";
    /** sys_role 表 code 唯一键索引 */
    public static final String SQL_INDEX_UNIQ_SYS_ROLE_CODE = "uniq_sys_role_role_code";
    /** sys_depart 表 code 唯一键索引 */
    public static final String SQL_INDEX_UNIQ_DEPART_ORG_CODE = "uniq_depart_org_code";
    /**
     * 在线聊天 是否为默认分组
     */
    public static final String IM_DEFAULT_GROUP = "1";
    /**
     * 在线聊天 图片文件保存路径
     */
    public static final String IM_UPLOAD_CUSTOM_PATH = "imfile";
    /**
     * 在线聊天 用户状态
     */
    public static final String IM_STATUS_ONLINE = "online";

    /**
     * 在线聊天 SOCKET消息类型
     */
    public static final String IM_SOCKET_TYPE = "chatMessage";

    /**
     * 考勤补卡业务状态 （1：同意  2：不同意）
     */
    public static final String SIGN_PATCH_BIZ_STATUS_1 = "1";
    public static final String SIGN_PATCH_BIZ_STATUS_2 = "2";

    /**
     * 男装、女装
     */
    public static final String category_sex_nan = "54";
    public static final String category_sex_nv = "55";

    /**
     * 支付配置项-支付宝配置
     */
    public static final String ZFB_APPID = "2017112300119442";
    //签名回调公钥
    public static final String ZFB_sign_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8lRYNfsxvJgeglP0O/J2a+gkvljXF/WFKLd+f1U9o2f8s2U4liic+U4clME4fJbmuI+8Ibsk48kt0tj8bJKqieNDUOnNDelOH0b9LNbeBdOiCj47+kPdOOD4zKj8r60vbd433OXNMz2J/GLfV410AO4lbcL1eXNESdYbL8US6mdeuV7jkKT14LbEchl6aksyIaILIdwD1b6FfldJnSCikXQiAtjMB1nmZysDVpw3+V0vxeFEybtMaxEE/fO23sAhMaz0Zmj+KS1BZ0Hjzx2tkjP0+iehv1OCuGDMtaFXEtL09+YSIyp2Y4tf2UUto2X3x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+HB2n7bc0S77BUNhTWG/C+i8vPCWV6RyggbhPCNUZpboA6G1oY6AQGexc+PJbplkhebkh0CgYEAztIwM1kFZNJBPuOWqB/Kt97bUOqZdNv554yC5FxPxjti98s0Ru83+EUUcecuXxFXHrH0aB0Rr/5EzbuxXb5ZdX79qD6MKxQk4anLHxnYHASrQ69Lw4pU2RF3X3uUAZNnH4kI7DH99Yz7qBNVjTxGHTnrtb6vKWUsmuhCoe0/Ut0CgYEAwZsJ+5IhwuQMecZkj7h2ld6yYcTN2Qo+xF/oYpooxGDFumFBOQsncuDaza8TN6DEvEQ+NJYpXgxWkzsUJze0Srny0X8s5XcRorYNFv3lBk6HAoJWBDLkfJsMWf29pEwbiBbDYsPjw5pSMTDCycgD079yL87qoaD7NdxDvQ8nbG0CgYA6RtRfrOR2OnZk5TU856QoL1MvwxfeBUmX1rb6e9+Fotkla+D2pzE+k6mR3TBOSj5v62yA3zYexn9+l6M81sY3knR1HmjlIpoimDGKzMPdYd3Yw9/4i3jtzvB4tHwJZy8xg2cg1bZ9rHzf4MeA3lLz4IKlsF1+jME4ge+kMHkSPg==";
    public static final String ZFB_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA75NweQYywGlQGSXqJPxl57aJyalaVfCdq1VTXlPFakGUaVYqtVvLIZspruAbqRfExOKG5v20HgS5KmjgiIkcnyghxm6M44lZDRhn3OR+aKvBsl0RSglqoPRZ8RiZuTGrvYetNJHEx0v+UxKYDqd3YZ1vSx8opty7H7g/5XIj/zA9BecyEoP/mLcAQUn27Xe3bLTU8uKAA22pxxCuejF05+lVuhFCfhLVVCheKm21U1BH/pQnvXtR3s1Hz/WZO6TOEzyTAe9I1saoeef4axOwUhXwlxXNvGKnyUkPiIfVK4AdkSmT26oD8+crYNjov9L8T7cUbYSccnQ3h0hGm75OKQIDAQAB";
    public static final String ZFB_RETURN_URL = "https://www.nbyid.cn";//正式
    public static final String ZFB_NOTIFY_URL = "https://api.nbyid.cn/mlcc/ali/pay/fallback";//正式

//    public static final String ZFB_RETURN_URL = "http://192.168.0.115:2000/";//本地测试
//    public static final String ZFB_NOTIFY_URL = "http://gwc.free.idcfengye.com/mlcc/ali/pay/fallback";//本地测试

    /**
     * 支付配置项-微信配置
     */
    public static final String WX_APPID = "wx9a2110e743e7cb60";
    public static final String WX_sign_SECRET = "ML30a69feaae0aa4b40aabc488b5acff";
    public static final String WX_APP_SECRET = "ningboyidawangluokejihaida804API";
    public static final String WX_MCHID = "1400015902";
    public static final String WX_ZHENGSHU = "static/cert/apiclient_cert.p12";
    public static final String WX_NOTIFY_URL = "https://api.nbyid.cn/mlcc/WxPay/wx/fallback";//微信正式
//    public static final String WX_NOTIFY_URL = "http://gwc.free.idcfengye.com/mlcc/WxPay/wx/fallback";//本地测试

    /**
     * JDBC数据库连接池
     */
    public static final String JDBC_URL = "jdbc:mysql://47.96.154.67:3306/mlccmysql?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&rewriteBatchedStatements=true";
    public static final String JDBC_USERNAME = "root";
    public static final String JDBC_PASSWORD = "WenKang88!";
    public static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";

//    public static final String JDBC_URL = "jdbc:mysql://114.55.248.170:3306/mlcc?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&rewriteBatchedStatements=true";
//    public static final String JDBC_USERNAME = "ML_DB";
//    public static final String JDBC_PASSWORD = "mlDb_888_FFF";
//    public static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";

}
